
#include<stdio.h>
#include<conio.h>

void main()

{
	float qty, rate, dis = 0, te;

	clrscr();

	printf("Enter the quantity & rate: ");

	scanf("%f%f",&qty, &rate);

	if (qty>1000)

	dis = 10;

	te = (qty * rate) - (qty * rate * dis /100); //te = total expences

	printf("Total expenses = %f", te);

	getch();
}
